package com.startup.yellocar.service;
import java.util.*;
import org.springframework.transaction.annotation.Transactional;
import com.startup.yellocar.dto.JourneyDTO;
public interface JourneyService {

	@Transactional
	public void insert(JourneyDTO journeyDTO);

	@Transactional
	public void update(JourneyDTO journeyDTO);

	@Transactional
	public JourneyDTO get(int id); 

	@Transactional
	public List<JourneyDTO> getAll(); 

	@Transactional
	public void delete(JourneyDTO journeyDTO);

}
